package com.cloudpark.model.entity;

import java.util.Date;

public class CardOrder {
    private Long id;

    private String orderNo;

    private Double rechargeAmount;

    private Date rechargeTime;

    private Integer payType;

    private Integer payChannel;

    private String plateNumber;

    private String parkCode;

    private Integer rechargeNum;

    private Date createdTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo == null ? null : orderNo.trim();
    }

    public Double getRechargeAmount() {
        return rechargeAmount;
    }

    public void setRechargeAmount(Double rechargeAmount) {
        this.rechargeAmount = rechargeAmount;
    }

    public Date getRechargeTime() {
        return rechargeTime;
    }

    public void setRechargeTime(Date rechargeTime) {
        this.rechargeTime = rechargeTime;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public Integer getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(Integer payChannel) {
        this.payChannel = payChannel;
    }

    public String getPlateNumber() {
        return plateNumber;
    }

    public void setPlateNumber(String plateNumber) {
        this.plateNumber = plateNumber == null ? null : plateNumber.trim();
    }

    public String getParkCode() {
        return parkCode;
    }

    public void setParkCode(String parkCode) {
        this.parkCode = parkCode == null ? null : parkCode.trim();
    }

    public Integer getRechargeNum() {
        return rechargeNum;
    }

    public void setRechargeNum(Integer rechargeNum) {
        this.rechargeNum = rechargeNum;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }
    
    public void copy(CardOrderTemp temp) {
	    this.setOrderNo(temp.getOrderNo());
	    this.setRechargeAmount(temp.getRechargeAmount());
	    this.setPayType(temp.getPayType());
	    this.setPayChannel(temp.getPayChannel());
	    this.setParkCode(temp.getParkCode());
	    this.setPlateNumber(temp.getPlateNumber());
	    this.setRechargeNum(temp.getRechargeNum());
	    this.setCreatedTime(new Date());
	}
}